{extend name='public/base' /}
{block name='title'}{$title}{/block}
{block name='menu'}{/block}
{block name='main'}
    <div class="container layui-box custom-top">
        <div class="row">
            <div class="col-md-offset-3 col-md-5">
                <fieldset class="layui-elem-field layui-field-title">
                    <legend class="custom-legend">后台管理 - 管理员登录</legend>
                    <div class="layui-field-box">
                        <form class="layui-form layui-form-pane">
                            <div class="layui-form-item">
                                <label class="layui-form-label">用户名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">密码</label>
                                <div class="layui-input-block">
                                    <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">验证码</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="captcha" required lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-form-mid layui-word-aux admin-captcha">{:captcha_img()}</div>
                            </div>
                            <div class="layui-form-item" pane>
                                <label class="layui-form-label">记住我</label>
                                <div class="layui-input-block">
                                    <input title="记住我" type="checkbox" name="remember" lay-skin="switch">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="adminLogin">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                            {:token()}
                        </form>
                    </div>
                </fieldset>
            </div>
        </div>
    </div>
{/block}